package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TExamRoomMapper;
import com.ruoyi.system.domain.TExamRoom;
import com.ruoyi.system.service.ITExamRoomService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考场Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-02
 */
@Service
public class TExamRoomServiceImpl implements ITExamRoomService 
{
    @Autowired
    private TExamRoomMapper tExamRoomMapper;

    /**
     * 查询考场
     * 
     * @param id 考场ID
     * @return 考场
     */
    @Override
    public TExamRoom selectTExamRoomById(Long id)
    {
        return tExamRoomMapper.selectTExamRoomById(id);
    }

    /**
     * 查询考场列表
     * 
     * @param tExamRoom 考场
     * @return 考场
     */
    @Override
    public List<TExamRoom> selectTExamRoomList(TExamRoom tExamRoom)
    {
        return tExamRoomMapper.selectTExamRoomList(tExamRoom);
    }

    /**
     * 新增考场
     * 
     * @param tExamRoom 考场
     * @return 结果
     */
    @Override
    public int insertTExamRoom(TExamRoom tExamRoom)
    {
        return tExamRoomMapper.insertTExamRoom(tExamRoom);
    }

    /**
     * 修改考场
     * 
     * @param tExamRoom 考场
     * @return 结果
     */
    @Override
    public int updateTExamRoom(TExamRoom tExamRoom)
    {
        return tExamRoomMapper.updateTExamRoom(tExamRoom);
    }

    /**
     * 删除考场对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTExamRoomByIds(String ids)
    {
        return tExamRoomMapper.deleteTExamRoomByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考场信息
     * 
     * @param id 考场ID
     * @return 结果
     */
    @Override
    public int deleteTExamRoomById(Long id)
    {
        return tExamRoomMapper.deleteTExamRoomById(id);
    }
}
